#include <stdio.h>

int sum(int n)
{
    int ret = 0;
    while (n)
    {
        ret += n;
        n--;
    }
    return ret;
}

int main()
{
    int ret = sum(100);

    printf("%d\n", ret);

    return 0;
}